package com.alibaba.entity;

import java.sql.Timestamp;
import java.util.Date;

/**
 * ErrorReport entity. 
 * @author kinglcc
 */

@SuppressWarnings("serial")
public class ErrorReport implements java.io.Serializable {

	// Fields

	private Integer errorReportId;
	private Users users;
	private Admin admin;
	private Integer questionId;
	private String errorReport;
	private Timestamp commitDate;
	private Boolean isEnabled;
	private Boolean isDealed;

	// Constructors

	/** default constructor */
	public ErrorReport() {
	}
	
	/**
	 * constructor
	 * 
	 * @param users
	 * @param isDealed
	 * @param questionId
	 */
	public ErrorReport(Users users, Boolean isDealed, Integer questionId) {
		this.users = users;
		this.isDealed = isDealed;
		this.questionId = questionId;
		this.commitDate = new Timestamp(new Date().getTime());
	}

	/** full constructor */
	public ErrorReport(Users users, Admin admin, String errorReport,
			Timestamp commitDate, Boolean isEnabled, Boolean isDealed) {
		this.users = users;
		this.admin = admin;
		this.errorReport = errorReport;
		this.commitDate = commitDate;
		this.isEnabled = isEnabled;
		this.isDealed = isDealed;
	}

	// Property accessors

	public Integer getErrorReportId() {
		return this.errorReportId;
	}

	public void setErrorReportId(Integer errorReportId) {
		this.errorReportId = errorReportId;
	}
	
	public Integer getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	public Users getUsers() {
		return this.users;
	}

	public void setUsers(Users users) {
		this.users = users;
	}

	public Admin getAdmin() {
		return this.admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public String getErrorReport() {
		return this.errorReport;
	}

	public void setErrorReport(String errorReport) {
		this.errorReport = errorReport;
	}

	public Timestamp getCommitDate() {
		return this.commitDate;
	}

	public void setCommitDate(Timestamp commitDate) {
		this.commitDate = commitDate;
	}

	public Boolean getIsEnabled() {
		return this.isEnabled;
	}

	public void setIsEnabled(Boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

	public Boolean getIsDealed() {
		return this.isDealed;
	}

	public void setIsDealed(Boolean isDealed) {
		this.isDealed = isDealed;
	}

}